﻿using System;

namespace XProject.DataVisit.Handler
{
    public enum JsonFields
    {
        Context,
        Request,
        Response,
        Log
    }

    [AttributeUsageAttribute(AttributeTargets.Field)]
    public class JsonViewAttribute : Attribute
    {
        public JsonViewAttribute(JsonFields fieldType)
        {
            _field = fieldType;
        }

        private JsonFields _field;

        public JsonFields FieldType
        {
            get
            {
                return _field;
            }
        }
    }
}
